// import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';
import { TabType } from '/@/components/HTabs/src/typing';
// import { comFileUploadRemindingApi as uploadApi } from '/@/api/sys/upload';
// import { comFileUploadRemindingApi } from '/@/api/config-center/model-design';
// src\api\config-center
// import { getDictTypeListApi } from '/@/api/admin/dict';
// import { DICT } from '/@/enums/dict';

export const columns: TabType[] = [
  { label: '邮件', value: 'TENANT_EMAIL_CONFIG' },
  { label: '钉钉', value: 'TENANT_DINGTALK_MSG_CONFIG' },
  { label: '短信', value: 'TENANT_SMS_CONFIG' },
  // { label: '微信', value: 'TENANT_WECHAT_CONFIG' },
  // { label: '第三方', value: 'TENANT_THIRD_PARTY_CONFIG' },
  // { label: '文件服务', value: 'TENANT_FILE_SERVER_CONFIG' },
];
export const columns2: TabType[] = [
  { label: '消息提醒', value: 'TENANT_EMAIL_CONFIG' },
  { label: '站点配置', value: 'TENANT_BASE_INFO_CONFIG' },
  { label: '站点资源配置', value: 'TENANT_FILE_SERVER_CONFIG' },
];

export const EmailFormSchema: FormSchema[] = [
  {
    field: 'smtp',
    label: '服务器名称',
    component: 'Input',
  },
  {
    field: 'port',
    label: '端口',
    component: 'InputNumber',
  },
  {
    field: 'protocol',
    label: '协议',
    component: 'Input',
  },
  {
    field: 'username',
    label: '用户名',
    component: 'Input',
  },
  {
    field: 'password',
    label: '密码',
    component: 'InputPassword',
  },
  {
    field: 'fromEmail',
    label: '发送人邮箱',
    component: 'Input',
  },
];

export const DDFormSchema: FormSchema[] = [
  {
    field: 'agentId',
    label: '代理Id',
    component: 'Input',
  },
  {
    field: 'appKey',
    label: 'appKey',
    component: 'Input',
  },
  {
    field: 'appSecret',
    label: '秘钥',
    component: 'Input',
  },
];

export const SMSFormSchema: FormSchema[] = [
  {
    field: 'appKey',
    label: 'appKey',
    component: 'Input',
  },
  {
    field: 'appSecret',
    label: '秘钥',
    component: 'Input',
  },
];
export const FileServes: FormSchema[] = [
  {
    field: 'enable',
    label: '是否开启',
    component: 'Switch',
  },
  {
    field: 'endPoint',
    label: '域名节点',
    component: 'Input',
  },
  {
    field: 'accessKey',
    label: '访问key',
    component: 'Input',
  },
  {
    field: 'secretKey',
    label: '密匙',
    component: 'Input',
  },
  {
    field: 'bucketName',
    label: '桶名称',
    component: 'Input',
  },
];
export const SystemResources: FormSchema[] = [
  // {
  //   field: 'appSecret',
  //   label: '系统logo',
  //   component: 'Input',
  // },

  // "title": "string",
  // "logo": "string",
  // "logo2": "string",
  // "icon": "string"
  {
    field: 'logo',
    component: 'Upload',
    label: '系统logo',
    slot: 'f3',
    colProps: {
      span: 8,
    },
    rules: [{ required: false, message: '请选择上传文件' }],
  },
  // {
  //   field: 'field3',
  //   component: 'Input',
  //   label: '自定义Slot',
  //   slot: 'f3',
  //   colProps: {
  //     span: 8,
  //   },
  //   rules: [{ required: true }],
  // },
  {
    field: 'logo2',
    component: 'Upload',
    label: '复合logo',
    slot: 'f4',
    colProps: {
      span: 8,
    },
    rules: [{ required: false, message: '请选择上传文件' }],
    // componentProps: {
    //   disabledUpload: false,
    //   emptyHidePreview: false,
    //   multiple: false,
    //   showPreviewNumber: false,
    //   api: comFileUploadRemindingApi,
    // },
  },
  {
    field: 'icon',
    component: 'Upload',
    label: '图标',
    colProps: {
      span: 8,
    },
    rules: [{ required: false, message: '请选择上传文件' }],
    slot: 'f5',
    // componentProps: {
    //   disabledUpload: false,
    //   emptyHidePreview: true,
    //   multiple: false,
    //   showPreviewNumber: false,
    //   api: comFileUploadRemindingApi,
    // },
  },
  {
    field: 'title',
    label: '系统名称',
    component: 'Input',
  },
];
